On 1/15/24 21:43, Mikael Sundqvist wrote:
> Hi,
>
> Try this:
> […]
> \definebodyfontenvironment[16pt]
> […]
> Maybe some check will be added. (On the chat with Hans...)
Many thanks for your help, Mikael.
Your hint solved the issue and having a check that avoids the repo
Am 15.01.24 um 21:43 schrieb Mikael Sundqvist:
Try this:
\definebodyfontenvironment[16pt]
Yes, works.
Hraban
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg
Hi,
Try this:
On Mon, Jan 15, 2024 at 6:17 PM Pablo Rodriguez via ntg-context
wrote:
>
> Dear list,
>
> I have the following sample:
>
> \definefontfamily[mainface][rm][TeX Gyre Pagella]
> \definefontfamily[coverface][rm][TeX Gyre Termes]
\definebod
On 10/21/2022 12:59 AM, Leah Neukirchen via ntg-context wrote:
Hi,
playing around with \definebodyfontenvironment with latest LMTX,
I found this possibly buggy behavior:
\definebodyfontenvironment[12pt][small=6pt] % x=6pt works here
\setupbodyfont[12pt]
\starttext
normal {\tx tx} {\small small
On 10/21/22 00:59, Leah Neukirchen via ntg-context wrote:
> Hi,
>
> playing around with \definebodyfontenvironment with latest LMTX,
> I found this possibly buggy behavior:
>
> \definebodyfontenvironment[12pt][small=6pt] % x=6pt works here
> \setupbodyfont[12pt]
> \st
Hi,
playing around with \definebodyfontenvironment with latest LMTX,
I found this possibly buggy behavior:
\definebodyfontenvironment[12pt][small=6pt] % x=6pt works here
\setupbodyfont[12pt]
\starttext
normal {\tx tx} {\small small}
\stoptext
With \definebodyfontenvironment[12pt][x=6pt] I can
usemodule[ipsum]
\showframe
\setuplayout[
width=100mm,
rightmargin=50mm,
rightmargindistance=6mm,
]
\setupbodyfontenvironment[11pt][
em=italicface,
text=11pt,
small=8pt,
interlinespace=14pt,
]
\definebodyfontenvironment[8pt][interlinespace=8pt]
\setupbodyfont[rm,11pt]
\define\PlaceFoot
use numeric values instead of defined font size
letters as a work-around, but that means lack of coordination with
custom sizes in \definebodyfontenvironment.
fixed in the next upload (which is a bit experimental in the sense
that some low level consistency renaming happened which always has
size
letters as a work-around, but that means lack of coordination with
custom sizes in \definebodyfontenvironment.
fixed in the next upload (which is a bit experimental in the sense
that some low level consistency renaming happened which always has the
danger of disabling some feature)
Hans
, but that means lack of coordination with
custom sizes in \definebodyfontenvironment.
fixed in the next upload (which is a bit experimental in the sense
that some low level consistency renaming happened which always has the
danger of disabling some feature)
Hans
This is still a problem using
sizes in \definebodyfontenvironment.
fixed in the next upload (which is a bit experimental in the sense that
some low level consistency renaming happened which always has the danger
of disabling some feature)
Hans
}\par
\contextbanner
\stoptext
Produces different relevant output with each engine.
I suppose one could use numeric values instead of defined font size
letters as a work-around, but that means lack of coordination with
custom sizes in \definebodyfontenvironment.
--
Rik
am 13.10.2021 um 17:52:
Hi,
I have this MWE:
%
\definebodyfontenvironment
[9bp]
[
normal=9bp,
b=24bp,
]
\setupbodyfont[9bp]
\startTEXpage
{
\setuplocalinterlinespace[line=25.5bp
Denis Maier via ntg-context schrieb am 13.10.2021 um 17:52:
Hi,
I have this MWE:
%
\definebodyfontenvironment
[9bp]
[
normal=9bp,
b=24bp,
]
\setupbodyfont[9bp]
\startTEXpage
Hi,
I have this MWE:
%
\definebodyfontenvironment
[9bp]
[
normal=9bp,
b=24bp,
]
\setupbodyfont[9bp]
\startTEXpage
{
\setuplocalinterlinespace[line=25.5bp]
%\setupinterlinespace[line
text
rather than body text.
In this case you change the font once at the start of the title page,
afterwards you can use \bf and \it to change styles.
\usebodyfont[heros]
\definebodyfontenvironment [14pt]
\starttext
\startstandardmakeup [style={\switchtobodyfont[heros,14pt]}]
The quick
>
> > See https://en.wikipedia.org/wiki/Point_(typography)
> >
> > Hraban
>
> Thanks for your help. That's already better. The base font size, and the
> bigger
> sizes are correct now. But it still does not work with the smaller sizes:
>
> % -
t now. But it still does not work with the smaller sizes:
% ---
\setupbodyfont[10bp]
\definebodyfontenvironment
[10bp]
[xx=7bp,
x=8.5bp,
a=11.75bp,
b=15bp,
]
\starttext
{\tfxx Smallest } % => expected 7pt
target values... As you can see below the deviation is not so
significant with the normal font size and bigger sizes, but more so with the
smaller sizes.
% --
\setupbodyfont[10pt]
\definebodyfontenvironment
nis
%-
\setuplayout[grid=yes]
\showgrid
\showstruts
\definefont [BigFont] [Bold at 20pt] [28pt]
\definefontsize[e] % < added
\definebodyfontenvironment [12pt] [e=20pt] % < added
\definebodyfontenvironment [10pt
Font] [Bold at 20pt] [28pt]
>
> \definefontsize[e] % < added
> \definebodyfontenvironment [12pt] [e=20pt] % < added
>
> \unprotect
> \unexpanded\def\section_command#1#2{%
>\framed [
> width=\textwidth,
>
]
\definefontsize[e] % < added
\definebodyfontenvironment [12pt] [e=20pt] % < added
\unprotect
\unexpanded\def\section_command#1#2{%
\framed [
width=\textwidth,
frame=off,
rulethickness=0pt,
offs
] % < added
\definebodyfontenvironment [12pt] [e=20pt] % < added
\defineframed[myframed][
width=\textwidth,
frame=off,
rulethickness=0pt,
offset=0pt,
loffset=-0pt,
foregroundstyl
hat special: it does automatic italic correction and changes the
> alternative depending on the current alternative. For example, if the
> current font alternative is normal (i.e. upright), \em switches to slanted;
> and if the current font alternative is slanted, \em switches to normal."
>
nding on the current alternative. For example, if the
current font alternative is normal (i.e. upright), \em switches to slanted;
and if the current font alternative is slanted, \em switches to normal."
And using \definebodyfontenvironment[default][em=italic] to use italic
instead of slanted; fo
does this by itself in most cases
but it can fail).
\definebodyfontenvironment [14pt]
I attached a slightly modified version of your project structure to show
a different way to organize documents. What I would change is to use a
better section name for each article, e.g. \Article
small for
the blockquoted text, and asked if I could simply indicate 10pt for 'x'.
I tried by using the line:
\definebodyfontenvironment[default] [x=10pt]
but that did nothing to change things. I tried a few other possibilities
as well, e.g. just adding the x=10pt after the em=italic
=2.4ex]},after={\blank}]
My publisher thinks the default scaling of 'x' (0.8) is too small for
the blockquoted text, and asked if I could simply indicate 10pt for 'x'.
I tried by using the line:
\definebodyfontenvironment[default] [x=10pt]
but that did nothing to change things. I tried a few
and a snip of
the failing result.
\definebodyfontenvironment[13pt]
[interlinespace=15pt]
\setuplayout [backspace=0pt,
topspace=30pt,
width=middle,
height=middle
.
\definebodyfontenvironment[13pt]
[interlinespace=15pt]
\setuplayout [backspace=0pt,
topspace=30pt,
width=middle,
height=middle,
location=middle
my thank you to you
privately)!
Your threshold=20 solved that particular case. But look at the following
example:
\definefontfeature[default][default][threshold=20,protrusion=quality,expansion=quality,lnum=yes,itlc=yes]
\setupalign[hz,hanging,line,height]
\definebodyfontenvironment[9bp][interlin
olved that particular case. But look at the following
example:
\definefontfeature[default][default][threshold=20,protrusion=quality,expansion=quality,lnum=yes,itlc=yes]
\setupalign[hz,hanging,line,height]
\definebodyfontenvironment[9bp][interlinespace=12bp]
\setupbodyfont[lucidaot,9bp]
\startt
]
\definefontsize [e]
\definebodyfontenvironment [default] [e=3.5]
\starttext
\strut\vfill
\startalign[center]
{\tfe conText is fun}
\blank[10mm]
{\em ( ijver & vlijt 8+ )}
\stopalign
\vfill\strut
\stoptext
this is the old version
this is the new output
With osx preview? How small can you
=empty, no]
\setupbodyfontenvironment [default] [em=italic]
\definefontfamily [myfamily] [serif] [TeX Gyre Termes]
\setupbodyfont [myfamily, 10pt]
\definefontsize [e]
\definebodyfontenvironment [default] [e=3.5]
\starttext
\strut\vfill
\startalign[center]
{\tfe conText is fun}
\blank[10mm]
{\em
I have tested it on this code:
\definebodyfontenvironment
[default] % or size
[text=10pt,a=2,d=5, % or other values
]
\starttext
ahoj {\bfa ahoj} {\bfd ahoj} ahoj
\showbodyfontenvironment
\stoptext
Tomáš
Sun, Feb 17, 2019 ve 06:02:53PM +0100 Wolfgang Schuster napsal
Tomas Hala schrieb am 17.02.19 um 16:07:
Hi all,
I played with \definebodyfontenvironment and found the command
\showbodyfontenvironment.
Experimentally I changed parameters at \definebodyfontenvironment
and I am not able to understand the logic of the table generated
Hi all,
I played with \definebodyfontenvironment and found the command
\showbodyfontenvironment.
Experimentally I changed parameters at \definebodyfontenvironment
and I am not able to understand the logic of the table generated
by the \showbodyfontenvironment.
What is the meaning of lines
to match what ConTeXt does. The 'x' ratio is 0.835 and the 'xx'
ratio is 0.6667.
The default sizes (12pt, 14.4pt etc,) set the x and xx sizes to a fixed
size which leads
to differences and the scale factor.
Below are the settings for the 12pt size from font-pre.mkiv:
\definebodyfontenvironment
trates
the problem. I do not understand now all the features interact to cause
this, but the reports disappear upon removing any (such as the
seemingly-redundant \definebodyfontenvironment or the
\switchtobodyfont[small]).
\enabletrackers
[fonts.missing]
\definebodyfontenviron
interact to cause
this, but the reports disappear upon removing any (such as the
seemingly-redundant \definebodyfontenvironment or the
\switchtobodyfont[small]).
\enabletrackers
[fonts.missing]
\definebodyfontenvironment
[11pt]
[a=1]
\definefontfallback
[fb:eb
=,
way=bypage,
distance=1pt,
location=page]
\setupnote[
alternative=serried,
paragraph=yes,
bodyfont=small,
inbetween=\penalty1{ }\emdash{}{ }\penalty-100, % \emdash{}
location=page,
before={\blank[glueOverFootnotes]},
height=10cm]
\definebodyfontenvironment[11pt][interline
,
Attached is a better alternative (just replace the file in the
distribution).
\usetypescriptfile[mscore]
\setupbodyfont [mschinese,12pt]
\usebodyfont [mschinese-light,12pt]
\definebodyfontenvironment[24pt]
\definebodyfontenvironment[18pt]
Hans
Hi,
Attached is a better alternative (just replace the file in the
distribution).
\usetypescriptfile[mscore]
\setupbodyfont [mschinese,12pt]
\usebodyfont [mschinese-light,12pt]
\definebodyfontenvironment[24pt]
\definebodyfontenvironment[18pt]
Hans
:
\setupbodyfont [mschinese,12pt]
\usebodyfont [mschinese-light,12pt] % preloads
\definebodyfontenvironment[24pt] % prevents messages
\definebodyfontenvironment[18pt] % prevents messages
There is no need to enable utf. Your table now becomes:
\bTABLEbody
\bTR\bTD 华文宋体 \eTD\bTD \tt STSONG.TTF \eTD\bTD
,
probably the default TeX font.
The same happens, m.m., when I replace Verdana with, for example, dejavu.
%++MWE+++
\usemodule[simplefonts]
\setmainfont[Verdana]
\setupbodyfont[10pt]
%\setupinterlinespace[line=18pt]
\definebodyfontenvironment[10pt][interlinespace=19pt
ich I defined very big font sizes.
> \definefontsize[e]
> \definebodyfontenvironment [default] [e=4]
>
> One of them was \definefontsize[g]
>
> I changed it to \definefontsize[gg] and all went right again
Cool. Now try $\biggl($
>
> The explanation (?) : maybe \big wa
Hello
Just a message to explain a problem I had and the answer.
The trouble : the big parenthesis were not big, $($ and $\bigl($ gave
the same shape
The fix :
I defined my own environment in which I defined very big font sizes.
\definefontsize[e]
\definebodyfontenvironment [default] [e=4
size[z]
\definebodyfontenvironment[default][z=.75]
\setuplinenumbering[location=inmargin,style={\tfz\tt},color=darkgreen,]
\setuptyping[TEX][style=\tfz,numbering=line,]
\typefile[TEX]{t3.mkiv}
\stop
\if+-
Some dummy text
Some dummy text
Some dummy text
Some dummy text
Some dumm
]
\definebodyfontenvironment[default][z=.75]
\setuplinenumbering[location=inmargin,style={\tfz\tt},color=darkgreen,]
\setuptyping[TEX][style=\tfz,numbering=line,]
\typefile[TEX]{t3.mkiv}
\stop
\if+-
Some dummy text
Some dummy text
Some dummy text
Some dummy text
Some dummy text
r the opposite should happen, shouldn't?
I am confused.
>The x and xx perform not the same scaling as a, b etc. but you can
>define your own sizes which behave the same way as a etc.
>
>\definefontsize[m]
>\definefontsize[n]
>
>\definebodyfontenvironment[default][m=0.8,n=0.
:
\definebodyfontenvironment
[\!!twelvepoint]
[\s!text=\!!twelvepoint,
\s!script=\!!ninepoint,
\s!scriptscript=\!!sevenpoint,
\s!x=\!!tenpoint,
\s!xx=\!!eightpoint,
\v!big=\!!fourteenpointfour,
\v!small=\!!tenpoint]
Wolfgang
On 10/17/2016 08:10 PM, Wolfgang Schuster wrote:
>> Pablo Rodriguez 17. Oktober 2016 um 20:07
>> [...]
>> If this isn’t a bug, what am I missing here?
>
> The default sizes (12pt, 11pt etc.) have fixed values for x and xx, you
> can see them in font-pre.mkiv:
>
e.mkiv:
\definebodyfontenvironment
[\!!twelvepoint]
[\s!text=\!!twelvepoint,
\s!script=\!!ninepoint,
\s!scriptscript=\!!sevenpoint,
\s!x=\!!tenpoint,
\s!xx=\!!eightpoint,
\v!big=\!!fourteenpointfour,
\v!small=\!!tenpoint]
Wo
On 10/16/2016 08:16 PM, Wolfgang Schuster wrote:
>> Pablo Rodriguez 16. Oktober 2016 um 20:07
>> [...]
>> Neither does it work now.
>
> Use \definebodyfontenvironment[17pt].
Many thanks for your fast reply, Wolfgang.
It works as expected.
Pablo
pesets fonts.
The x and xx perform not the same scaling as a, b etc. but you can
define your
own sizes which behave the same way as a etc.
\definefontsize[m]
\definefontsize[n]
\definebodyfontenvironment[default][m=0.8,n=0.9]
\starttext
{\tfm This paragraph contains text and $math$.}
optext
\stopbuffer
\starttext
\typesetbuffer[buffer:inside]
\stoptext
Neither does it work now.
Use \definebodyfontenvironment[17pt].
Wolfgang
___
If your question is of interest to others as well, please add an
tch creates only a command which uses
\switchtobodyfont with a fixed number of arguments.
But this doesn't explain why \definebodyfontenvironment did not do
anything in my MNWE. The fonts book is not very clear on its intended
use.
You put spaces before and after = whic
ommand \definebodyfontswitch and defined
switches like \normalsize, \scriptsize, \large, \Large etc.
The \definebodyfontswitch creates only a command which uses
\switchtobodyfont with a fixed number of arguments.
But this doesn't explain why \definebodyfontenvironment did not do
anything in my MNWE. The font
bigger than \tf).
\definebodyfontenvironment[palatino][24pt][
text = 24pt,
small = 22pt,
x = 22pt,
scriptscript = 16pt,
xx = 16pt,
big=28pt,
a = 80pt, % 28pt
b = 40pt,
c = 50pt,
d = 50pt,
interlinespace = 3ex,
em = italic
]
\setupbodyfont[palatino,24pt]
\starttext
he
preset proportions relative to the preceding fontsize command (in the
example, \tfx is bigger than \tf).
\definebodyfontenvironment[palatino][24pt][
text = 24pt,
small = 22pt,
x=22pt,
scriptscript = 16pt,
xx = 16pt,
big=28pt,
a = 80pt, % 28pt
b = 40pt,
c = 50pt,
d = 50pt,
interlinespace
he example, \tfx is bigger than \tf).
\definebodyfontenvironment[palatino][24pt][
text = 24pt,
small = 22pt,
x=22pt,
scriptscript = 16pt,
xx = 16pt,
big=28pt,
a = 80pt, % 28pt
b = 40pt,
c = 50pt,
d = 50pt,
interlinespace = 3ex,
em = italic
]
\setupbodyfont[palatino,24pt]
\starttext
edit: Sorry, I meant the command \definebodyfontenvironment, of course,
like in the code sample.
Am 06.06.2016 um 16:05 schrieb Thomas Fehige:
In the fonts book I found the \definebodyfont command, but it does not
to do what I expected. What I need (for a poster) is a set of absolute
font
he
preset proportions relative to the preceding fontsize command (in the
example, \tfx is bigger than \tf).
\definebodyfontenvironment[palatino][24pt][
text = 24pt,
small = 22pt,
x=22pt,
scriptscript = 16pt,
xx = 16pt,
big=28pt,
a = 80pt, % 28pt
b = 40pt,
c = 50pt,
d = 50pt,
interlinespace
switch to that size.
It is part of a fontsize changing mechanism inside an xmlsetup. In
short what I am doing is:
\scratchdimen=\the\dimexpr\bodyfontsize\relax
\advance\scratchdimen 'somevalue' \relax
%\definebodyfontenvironment[\the\scratchdimen]
\begingroup
% must keep the change local
\switchtobo
. In short what I
am doing is:
\scratchdimen=\the\dimexpr\bodyfontsize\relax
\advance\scratchdimen 'somevalue' \relax
% \definebodyfontenvironment[\the\scratchdimen]
\begingroup
% must keep the change local
\switchtobodyfont[\the\scratchdimen]
...
\endgroup
The commented out \definebodyfontenvironment
Meer, Hans van der <mailto:h.vanderm...@uva.nl>
14. Mai 2016 um 17:55
I like to execute this statement
\definebodyfontenvironment[somevalue]
in order to avoid lots of error messages as such:
fonts > bodyfont '8.0pt' is defined (can better be done global
Is this definebodyfontenvironm
I like to execute this statement
\definebodyfontenvironment[somevalue]
in order to avoid lots of error messages as such:
fonts > bodyfont '8.0pt' is defined (can better be done global
Is this definebodyfontenvironment macro fully executed each time it is called
or does ConTeXt remem
I found how to make it work with \switchtobodyfont, I was
missing \definebodyfontenvironment for the sizes. And I had (obviously) to
update the \definebodyfont with the correct sizes.
But still, \tfxx and so do not switch to correct font.
Thanks,
Antoine
On 9 May 2016 at 11:23, Antoine
t,12pt]
\dostepwiserecurse {6} {22} {1} {
\definebodyfontenvironment[default][#1pt][text=#1pt,em=italic]
}
\starttext
\dostepwiserecurse {6} {22} {1} {
\switchtobodyfont[#1pt]
\purefontname\font: \input tufte
\blank
}
\stoptext
but it does not work. Any help?
%\definefontfamily [default] [rm] [GaramondPrem
} {
\definebodyfontenvironment[default][#1pt][text=#1pt,em=italic]
}
\starttext
\dostepwiserecurse {6} {22} {1} {
\switchtobodyfont[#1pt]
\purefontname\font: \input tufte
\blank
}
\stoptext
but it does not work. Any help?
Thanks in advance, Massi
To Hans: if you find it useful for Context
).
You can drop the \definebodyfontenvironment line when you use
\definefont to set the part fonts, e.g.
\definefont[PartText][SerifBold sa 5]
\setuphead[part][textstyle=PartText]
On Mon, 22 Jun 2015 18:36:03 +0200, Wolfgang Schuster
schuster.wolfg...@gmail.com wrote:
This method to set your
the
attachment).
You can drop the \definebodyfontenvironment line when you use
\definefont to set the part fonts, e.g.
\definefont[PartText][SerifBold sa 5]
\setuphead[part][textstyle=PartText]
On Mon, 22 Jun 2015 18:36:03 +0200, Wolfgang Schuster
schuster.wolfg...@gmail.com wrote:
This method
}%
}
\definefontsize[e]
\definebodyfontenvironment[default][e=5.]
\define[1]\MyPartCmdNum{%
\hbox to\hsize{\hfill \bfe\sc#1\hfill}%
}
\setuphead[part]
[command=\MyPartCmd,
numbercommand=\MyPartCmdText,
textcommand=\MyPartCmdNum,
placehead=yes,header=none,page=odd,
before={\setupbackgrounds[page
{%
{%
\vbox to\vsize{%
\vfill\vfill%
#1
\blank[big]
#2
\vfill\vfill\vfill%
}
}%
}
\define[1]\MyPartCmdText{%
\hbox to\hsize{\hfill \bf DĂl #1\hfill}%
}
\definefontsize[e]
\definebodyfontenvironment[default][e=5.]
\define[1]\MyPartCmdNum{%
\hbox
is the proper
description of the default.
\setuppapersize [A5,landscape][A4]
\definebodyfontenvironment [default][d=6]
\showframe
\starttext
\framed[align=no]{\tfd 1}
\page
\framed[]{\tfd 2}
\page
\framed[orientation=90,align=no,width=\textheight]{\tfd 3
is no, but I do not know what is the proper
description of the default.
\setuppapersize [A5,landscape][A4]
\definebodyfontenvironment [default][d=6]
\showframe
\starttext
\framed[align=no]{\tfd 1}
\page
\framed[]{\tfd 2}
\page
\framed[orientation=90,align=no,width
is the fifth page. I would think
that the wiki is incorrect in stating that the default value for the
align key is no, but I do not know what is the proper description of the
default.
\setuppapersize [A5,landscape][A4]
\definebodyfontenvironment [default][d=6]
\showframe
\starttext
of the default.
\setuppapersize [A5,landscape][A4]
\definebodyfontenvironment [default][d=6]
\showframe
\starttext
\framed[align=no]{\tfd 1}
\page
\framed[]{\tfd 2}
\page
\framed[orientation=90,align=no,width=\textheight]{\tfd 3}
\page
\framed[orientation=90,align=no]{\tfd 4}
\page
\framed
Pagella Math][default]
\definebodyfontenvironment[18pt]
\setupbodyfont[lundface,18pt]
\starttext
{3 $3$}
{\bf 3 $3$}
\stoptext
%%%
I get the same behavior. Sometimes, the fourth 3 will become bold.
This happens very randomly (sometimes I have to compile 10 times for
it to happen). I compile
=style:normal,scale=0.92]
\definefontfamily [lundfaces] [math] [TeX Gyre Pagella Math]
\definebodyfontenvironment[18pt]
\setupbodyfont[lundfaces,ss,18pt]
\starttext
{3 $3$}
{\bf 3 $3$}
\stoptext
%%% END TEST FILE
open source 1 1 /home/mickep/ConTeXt/tex/texmf-context/tex/context/base
[luface] [math] [Adobe Garamond Pro] [math:digitsnormal]
\definefontfamily [luface] [math] [Tex Gyre Pagella Math]
\definebodyfontenvironment[18pt]
\setupbodyfont[luface,18pt]
%%%
it works well. What if I want to change TeX Gyre Pagella Math to
Iwona? It turns out I cannot just change
] [Tex Gyre Pagella Math]
\definebodyfontenvironment[18pt]
\setupbodyfont[luface,18pt]
%%%
it works well. What if I want to change TeX Gyre Pagella Math to
Iwona? It turns out I cannot just change it to Iwona, iwona,
Iwona Math, ... Other fonts seem to work, but Iwona no?
2) Say that I change
]
\definefontfeature [narrow] [extend=0.75]
\definefontfamily [one] [serif] [Latin Modern Roman]
\definefontfamily [two] [serif] [Latin Modern Roman] [features={default,wide}]
\definefontfamily [three] [serif] [Latin Modern Roman]
[features={default,narrow}]
\definebodyfontenvironment[50pt
]
\definefontfamily [one] [serif] [Latin Modern Roman]
\definefontfamily [two] [serif] [Latin Modern Roman] [features={default,wide}]
\definefontfamily [three] [serif] [Latin Modern Roman]
[features={default,narrow}]
\definebodyfontenvironment[50pt]
\starttext
\switchtobodyfont[one,50pt]Stretched
On 2014-02-26, 22:57, Wolfgang Schuster wrote:
Add \definebodyfontenvironment[50pt] before \starttext.
Thanks, that does the trick.
Kind regards, Joshua
___
If your question is of interest to others as well
Gyre Termes]
\setupbodyfont [firstfamily, 60pt]
\starttext
abc {\switchtobodyfont [secondfamily, 60pt] abc} abc
abc {\switchtobodyfont [secondfamily, 50pt] abc} abc
\stoptext
Add \definebodyfontenvironment[50pt] before \starttext.
Wolfgang
and Engineering_. It should also give the setup a thorough
workout. But I can't quite get the preamble right.
The test file below typesets text and math in palatino.
\usetypescriptfile[euler-with-pagella]
\definebodyfontenvironment[10.5pt]
\setupbodyfont[palatino,10.5pt]
\starttext
\input knuth
the typescript file for euler.
\definebodyfontenvironment[10.5pt]
\setupbodyfont[palatino,10.5pt]
When you use the palatino typeface context uses only the pagella math fonts.
To use palatino as text font and euler for math you have to create your own
typeface collection:
\usetypescriptfile[euler
] [ubuntulight]
[math:digitsnormal][force=yes]\definefontfamily [mainface] [math]
[TeX Gyre Pagella Math]\definebodyfontenvironment
[11pt][a=12pt,b=14.4pt,c=17.3pt,d=32pt,interlinespace=13pt]\setupbodyfont[mainface,11pt]*
but it does not work (it is ok if I use ubuntu instead of ubuntulight
Hi,
\definebodyfontenvironment works for the concrete fontsize, thanks, Wolfgang.
But - even if I read the short documentation at the ctx-garden - I am still
a bit confused, eg:
\text[4.61pt] works automatically but \text[4.651pt] not, only with the
defining command, similarly behave \text
Am 04.09.2013 um 19:07 schrieb Tomas Hala th...@pef.mendelu.cz:
Hi all,
recently I installed TeXlive 2013. In a document, I ran into the problem
with font sizes: only points and ems operates properly in contrast
to other units giving the basic (12pt) size.
Add \definebodyfontenvironment
the font without the simplefonts
module.
The problem with the wrong font can be solved by adding
\definebodyfontenvironment[10.5pt] to the document.
Wolfgang
___
If your question is of interest to others as well, please
{20pt}
\definebodyfontenvironment [\mainfontsize]
\starttext
TEXT
\switchtobodyfont [\mainfontsize]
TEXT 20pt
\stoptext
See this thread for some background info:
http://www.mail-archive.com/ntg-context@ntg.nl/msg63901.html
Best regards,
Philipp
pgpGIP_P7V63W.pgp
Description
dimensions but identifiers for
predefined bodyfont sets. Example:
\def\mainfontsize{20pt}
\definebodyfontenvironment [\mainfontsize]
\starttext
TEXT
\switchtobodyfont [\mainfontsize]
TEXT 20pt
\stoptext
See this thread for some background info:
http://www.mail
04.08.2013, 16:49, Philipp Gesang philipp.ges...@alumni.uni-heidelberg.de:
the size-related arguments to \switchtobodyfont and
\setupbodyfont aren’t real TeX dimensions but identifiers for
predefined bodyfont sets. Example:
\def\mainfontsize{20pt}
\definebodyfontenvironment
. Add \definebodyfontenvironment[10.5pt] to your document.
Thanks, that fixes everything. On the theory of teaching a man to fish,
how did you learn so much about making ConTeXt do just the right thing?
1. Use the normal and not the developer list for such a question.
I thought it was a bug
and in Norbert's latest
Debian packages--the problem happens in both.
1. Use the normal and not the developer list for such a question.
2. You can omit the \usetypescript line.
3. Move the \setupbodyfont setting *before* \startcomponent.
4. Add \definebodyfontenvironment[10.5pt] to your document
by the project file. Should the \project project_file
line be placed before the \startcomponent? Like this:
\project project_file
\startcomponent component_name
If that's the recommended way, I can update
http://wiki.contextgarden.net/Project_structure
4. Add \definebodyfontenvironment[10.5pt
by default (8pt, 12pt etc.) you should define a
bodyfont environment first.
\definebodyfontenvironment[11.5pt]
Wolfgang___
If your question is of interest to others as well, please add an entry to the
Wiki
]
\stoptypescript
\starttypescript [serif] [schola-preset] [size]
\definebodyfont
[35.8pt,29.8pt,24.8pt,20.7pt,17.3pt,14.4pt,12pt,11pt,10pt,9pt,8pt]
[rm]
[tf=Serif sa 1]
\stoptypescript
\starttypescript [schola-default]
\definebodyfontenvironment
[schola-default
1 - 100 of 208 matches
Mail list logo